<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
 * This is free software. You can modify and redistribute it
 * under the terms of the GNU General Public License as published by
 * the Free Software Foundation, see http://www.gnu.org/licenses/gpl.txt
 ********************************************************************************/
$dictionary['KReport'] = array('table' => 'kreports'
                               ,'fields' => array (
   'report_module' => array(
          'name' => 'report_module', 
          'type' => 'enum',
          'options' => 'moduleList',
          'len' => '25',
          'vname' => 'LBL_MODULE',
          'massupdate' => false,
   ),
   'listtype' => array(
          'name' => 'listtype', 
          'type' => 'varchar',
          'len' => '10',
          'vname' => 'LBL_LISTTYPE',
          'massupdate' => false,
   ),
   'selectionlimit' => array(
          'name' => 'selectionlimit', 
          'type' => 'varchar',
          'len' => '25',
          'vname' => 'LBL_SELECTIONLIMIT',
           'massupdate' => false,
   ),
   'pdforientation' => array(
          'name' => 'pdforientation', 
          'type' => 'varchar',
          'len' => '10',
          'vname' => 'LBL_PDFORIENTATION',
          'massupdate' => false,
   ),
   'values_column' => array(
          'name' => 'values_column', 
          'type' => 'varchar',
          'len' => '25',
          'vname' => 'LBL_VALUES',
          'massupdate' => false,
   ),
   'values_function' => array(
          'name' => 'values_function', 
          'type' => 'multienum',
             		  'options' => 'value_functions',
          'vname' => 'LBL_VALUES_FUNCTION',
          'massupdate' => false,
   ),
   'categories' => array(
          'name' => 'categories', 
          'type' => 'varchar',
          'len' => '25',
          'vname' => 'LBL_CATEGORIES',
          'massupdate' => false,
   ),
   
   'chart_layout' => array(
          'name' => 'chart_layout', 
          'type' => 'varchar',
          'len' => '3',
          'vname' => 'LBL_CHART_LAYOUTS',   
          'massupdate' => false,
   ),
   
   'chart_params' => array(
          'name' => 'chart_params', 
          'type' => 'text',
          'vname' => 'LBL_CHART_PARAMS',
   ),
   
   'chart_height' => array(
          'name' => 'chart_height', 
          'type' => 'varchar',
          'len' => '4',
          'vname' => 'LBL_CHART_HEIGHT',
   ),   
   
   'wheregroups' => array(
   		  'name' => 'wheregroups', 
   		  'type' => 'text', 
   		  'vname' => 'LBL_WHEREGROUPS',
   		  'default' => '[]',
   ),   
   'whereconditions' => array(
   		  'name' => 'whereconditions', 
   		  'type' => 'text', 
   		  'vname' => 'LBL_WHERECONDITION',
   		  'default' => '[]',
   ),
  'listfields' => array(
   		  'name' => 'listfields', 
   		  'type' => 'text', 
   		  'vname' => 'LBL_LISTFIELDS'
   ),
   'field_tree' => array(
   		  'name' => 'field_tree',
   	   		  'source' => 'non-db',
   )
),
   'indices' => array (
       array('name' =>'idx_reminder_name', 'type'=>'index', 'fields'=>array('name')),
                    )

        	,'optimistic_locking'=>true,
                            );
VardefManager::createVardef('KReports','KReport', array('default', 'assignable',));

?>
